from django.conf.urls.defaults import *
from hominin.taxonomy.models import Species

species_dict = {
	'queryset': Species.objects.all(),
}

urlpatterns = patterns('',
	(r'^$', 'django.views.generic.list_detail.object_list', species_dict),
	(r'^species/(?P<object_id>\d+)/$', 'django.views.generic.list_detail.object_detail', species_dict),
	(r'^species/(?P<slug>[-\w]+)/$', 'django.views.generic.list_detail.object_detail', dict(species_dict, slug_field='slug')),
)
